package com.parksys.controller;


import com.parksys.pojo.User;
import com.parksys.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.List;

/**
 * @author KENANS
 * @date 2020-9-15 11:08
 * @Version 1.0
 */
@RestController
@Api(tags = "用户相关的操作！")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("/find.do")
    @ApiOperation(value = "查询用户", notes = "查询用户")
    public List<User> find() {
        List<User> users = userService.selectAll();
        return users;
    }
}
